package com.skytech.ssr.dynamicdb.primary.domain.services;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.skytech.ssr.dynamicdb.primary.domain.mappers.UserMapper;
import com.skytech.ssr.dynamicdb.primary.domain.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService extends ServiceImpl<UserMapper, User> {
    @Autowired
    private UserMapper userMapper;

    public IPage<User> findUserByMapper(Page<User> page, JSONObject params) {
/*        PageHelper.startPage((int) page.getCurrent(), (int) page.getSize());
        return PageWrapper.wrapper(page, new PageInfo(userMapper.findUsers(params)));*/

        return null;
    }
}
